
<template>
  <div class="brand-container">
    <div class="title-bar">西德美</div>
    <div class="brand-grid">
      <div class="brand-item">
        <img src="../../assets/anta.jpeg" alt="安踏">
        <p>安踏</p>
      </div>
      <div class="brand-item">
        <img src="../../assets/nike.jpeg" alt="耐克">
        <p>耐克</p>
      </div>
      <div class="brand-item">
        <img src="../../assets/adidas.png" alt="阿迪达斯">
        <p>阿迪达斯</p>
      </div>
      <div class="brand-item">
        <img src="../../assets/hla.jpeg" alt="海澜之家">
        <p>海澜之家</p>
      </div>
      <div class="brand-item">
        <img src="../../assets/spider.jpeg" alt="蜘蛛王">
        <p>蜘蛛王</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BrandCard',
  data() {
    return {
      cards: []
    }
  }
}
</script>

<style lang="less">
.brand-container {
  position: relative;
  height: 100%;
  margin-top: 10px;
  margin-left: 20px;
  padding: 20px;
   background-color: rgba(6, 30, 93, 0.5);
  border-top: 2px solid rgba(1, 153, 209, .5);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  padding: 20px 0;
}

.brand-item {
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-item img {
  width: 50px;
  height: 50px;
}

.brand-item p {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
</style>
